obj-m := ${PROJECT_NAME}.o  # 驱动模块对象

# 编译选项，增加头文件搜索路径
EXTRA_CFLAGS := -I$(INCLUDE_DIR)

all:
	$(MAKE) -C $(KERNELDIR) M=$(SOURCE_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) EXTRA_CFLAGS=$(EXTRA_CFLAGS) modules
	
clean:
	$(MAKE) -C $(KERNELDIR) M=$(SOURCE_DIR) clean